<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="java.util.*,com.aq.model.*,com.hs.utils.*" %>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<s:include value="../include.jsp"></s:include>
<%
String path = request.getContextPath();
String pageStr = request.getAttribute("pageStr")+"";
List list = (List)request.getAttribute("dataList");
 %>
<html>
<META http-equiv=pragma content=no-cache>
<META content="" name=Author>
<META content="" name=Keywords>
<META content="" name=Description>  
<head>
<script type="text/javascript">
function addCase(){

     window.location.href="<%=path%>/editCase.action";

}
function editCase(){



}
function deleteCase(){


}
</script>


</head>
<body>

<table cellSpacing=0 align=right cellPadding=0 border=0>
<tr>
<td>
<table   cellSpacing=0 align=right cellPadding=0 border=0 valign=top>
<tr>
<td><input name="button" type="button" class="buttom"  onclick="addCase();" value="新增"></td>
<td><input name="button" type="button" class="buttom" onclick="editCase();" value="编辑"></td>
<td><input name="button" type="button" class="buttom" onclick="deleteCase();" value="删除"></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr heigth="5px"><td><br></td></tr>
<tr>
<td>
<DIV class=tab>
<form name="form1" action="" method="post">
<TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all; TEXT-ALIGN: justify" width=100% cellSpacing=0 cellPadding=0 border=0>
  <TBODY>
  <TR class=top>
   <TD width=3%>序号</TD> 
    <TD width=5%>新闻编号</TD> 
     <TD width=20%>新闻标题</TD> 
    <TD width=20%>起草人</TD> 
    <TD width=10%>起草时间</TD> 
    <TD width=15%>发布人</TD> 
    <TD width=10%>发布时间</TD> 
    <TD width=10%>阅读</TD> 
    </TR>  
       <%
   if(null != list && list.size() >0){
   int size = list.size();
   for(int i=0;i<size;i++){
    	AqNews news =(AqNews)list.get(i);
   %>
  <TR align=center bgColor=<%if(i%2 == 0){out.println("#fffbff");}else{out.println("#eef1f9");} %>>
    <TD><FONT color=#ff3300><%=i+1 %></FON/></TD>
    <TD class=title><input type="checkbox" value="<%=news.getNewsid()%>" name="newsId"><%=Utilities.null2Blank(news.getNewsCode()) %></TD> 
    <TD><A  href="<%=path %>/editNews.action?newsid=<%=news.getNewsid()%>"><%=Utilities.null2Blank(news.getTitle())%></A></TD>
    <TD><%=news.getDraftUser() %></TD>
    <TD><%=news.getAddDate() %></TD>
    <TD><%=news.getPublishUser() %></TD>
    <TD><%=news.getPublishDate() %></TD>
    <TD><%=news.getHitnum()%></TD> 
     
  </TR> 
    <%}}else{ %>
    <TR align=middle bgColor="#eef1f9">
    <TD colspan=8 align="center"><FONT color=red>没有数据</FON/></TD> 
  </TR>  
  <%} %>
    
  </TBODY></TABLE>
  </form> 
  </DIV>
  </td>
  </tr> 
  
  <tr>
<td align="right"> 
<%=pageStr %>
 </td>
  </tr>  
</table>

</BODY></HTML>
